/*
 * MainScreen.fx
 *
 * Created on 12-May-2010, 19:07:13
 */

package com.googlecode.snorkel;

import javafx.scene.Group;
import javafx.scene.shape.Rectangle;
import javafx.scene.paint.Color;


/**
 * @author brian
 */

public class MainScreen {
   public var opacityMain: Number;
   //var headerMenu = HeaderMenu{opacityMainHeader: bind opacityMain};
   var myMainGroup:Group;
   package function getMainScreen(socialNetwork) {
      if(socialNetwork == 'Home'){
            myMainGroup = Group {
               content: [
                  Rectangle {
                     x: 80, y: 130
                     width: 253, height: 120
                     fill: Color.BLACK
                     stroke: Color.GRAY
                     strokeWidth: 3.0
                     arcWidth: 20
                     arcHeight: 20
                     smooth: true
                  }
               ]
               opacity: bind opacityMain
            }
      } else {myMainGroup = Group {
               content: [
                  Rectangle {
                     x: 80, y: 130
                     width: 253, height: 120
                     fill: Color.WHITE
                     stroke: Color.GRAY
                     strokeWidth: 3.0
                     arcWidth: 20
                     arcHeight: 20
                     smooth: true
                  }
               ]
               opacity: bind opacityMain
            }
         }
      return myMainGroup;
   }
   package function setMainScreen(socialNetwork) {
      println("We're inside mainScreen and about to set some shit!")
   }

}
